<template>
  <el-card shadow="hover">
    <el-row>
      <el-col :span="10">
        <router-link to="/detail">
          <h2>产品运营</h2>
        </router-link>
        <span style="color: #c7c7c7">北京 | 1-3年 | 本科 | 6-8k </span>
      </el-col>
      <el-col :span="4">
        <el-row>
          <el-col :span="8">
            <h4>38</h4>
            <span style="color: #c7c7c7">看过我</span>
          </el-col>
          <el-col :span="8">
            <h4>7</h4>
            <span style="color: #c7c7c7">沟通过</span>
          </el-col>
          <el-col :span="8">
            <h4>1</h4>
            <span style="color: #c7c7c7">感兴趣</span>
          </el-col>
        </el-row>
      </el-col>
      <el-col :span="6">
        <div class="grid-content ep-bg-purple-light" />
      </el-col>
      <el-col :span="4">
        <div class="grid-content ep-bg-purple-light" />
      </el-col>
    </el-row>
  </el-card>
</template>

<script setup>
import {onMounted, ref} from "vue";
import axios from "axios";
import router from "@/router";
import {ElMessage} from "element-plus";
let user=localStorage.user?JSON.parse(localStorage.user):null;
let Authorization=localStorage.user?JSON.parse(localStorage.Authorization):null;


// const contentArr = ref([]);
//
// onMounted(()=>{
//   axios.get(BASE_URL+'/v1/contents/list/admin')
//       .then((response)=>{
//         if(response.data.code==1){
//           contentArr.value = response.data.data;
//         }
//       })
// })

// const editContent = (c)=>{
//   //跳转到发布页面并把内容id传递过去
//   router.push('/personal/post?id='+c.id);
//   localStorage.editFrom = 'admin'; // 设置修改来源页面
// }

// const deleteContent = (i,c)=>{
//   if(confirm("您确认删除此内容吗?")){
//     axios.post(BASE_URL+'/v1/contents/'+c.id+'/delete')
//         .then((response)=>{
//           if(response.data.code==1){
//             ElMessage.success("删除成功!");
//             contentArr.value.splice(i,1); // 删除数组里的内容
//           }
//         })
//   }
// }

</script>

<style scoped>

</style>